package com.yx.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

public class Verification implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "yId", type = IdType.AUTO)
    private Integer yId;

    private String yzm;
    @TableField(value = "createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")//返回给前台
    @DateTimeFormat(pattern = "yyyy-MM-dd")//到后台
    private Date createTime;

    private String email;

    public Integer getyId() {
        return yId;
    }

    public void setyId(Integer yId) {
        this.yId = yId;
    }

    public String getYzm() {
        return yzm;
    }

    public void setYzm(String yzm) {
        this.yzm = yzm;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "Verification{" +
                "yId=" + yId +
                ", yzm='" + yzm + '\'' +
                ", createTime=" + createTime +
                ", email='" + email + '\'' +
                '}';
    }
}
